﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using Automobile.service.Model;
using Automobile.service.DAL;

namespace Automobile.service.BLL
{
   public class JournaBll
    {
       JournalDal dal = new JournalDal();
    
       /// <summary>
       /// 显示日志信息
       /// </summary>
       /// <returns></returns>
       public List<JournalModel> Journal()
       {
           return dal.Journal();
       }
       /// <summary>
       /// 添加日志信息
       /// </summary>
       /// <returns></returns>
       public int AddJournal(JournalModel s)
       {
           return dal.AddJournal(s);
       }
       /// <summary>
       /// 删除日志信息
       /// </summary>
       /// <returns></returns>
       public int DeleJourna(int Journa_Id)
       {
           return dal.DeleJourna(Journa_Id);  
       }

       /// <summary>
       /// 取单个日志信息
       /// </summary>
       /// <returns></returns>
       public DataTable GetJourna(string Journa_Id)
       {
           return dal.GetJourna(Journa_Id);
       }

       /// <summary>
       /// 更新日志信息
       /// </summary>
       /// <param name="stu"></param>
       /// <returns></returns>
       public int UpdateJourna(JournalModel s)
       {
           return dal.UpdateJourna(s);
       }
    }
}
